<?php
/**
 * Created by PhpStorm.
 * User: u
 * Date: 2019/4/8
 * Time: 13:44
 */

namespace app\controllers;

use Yii;

class TaskOrderController extends BaseController
{
    /** @var \common\logics\taskorderrecord\TaskOrderRecordLogic $TaskOrderRecordService **/
    private $TaskOrderRecordService;

    public function init()
    {
        $this->TaskOrderRecordService = Yii::$container->get("TaskOrderRecordService");
        return parent::init();
    }

    public function actionGetTaskOrderRecord()
    {
        $param = [
            "buy_id" => Yii::$app->request->post("buy_id",0),       //买手id
            "page_num" => Yii::$app->request->post("page_num",1),   //当前页数
            "limit" => Yii::$app->request->post("limit",10),        //每页条数
            "safetyCode" => Yii::$app->request->post("safetyCode",''),//安全码
        ];
        $result = $this->TaskOrderRecordService->getTaskOrderList($param);
        return $result;
    }
}